﻿using System;
using System.IO;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Navigation;
using DiamondDesktop.Model;
using DiamondDesktop.Presenters;

namespace DiamondDesktop
{
	public partial class ReminderWindow :Window
	{
        Reminder r = Reminder.getInstance();
		public ReminderWindow(Task t)
		{
			this.InitializeComponent();
            this.Left = 500;
            this.Top = 160;
			
			// 在此点之下插入创建对象所需的代码。
            if(t!=null)
                  lb_title.Content =  t.getTitle();
                  lb_content.Content = t.getContent();
		}

        private void B_Redclose_Click(object sender, RoutedEventArgs e)
        {
            this.Hide();
            r.player.stop();
            
        }

        private void WinMove(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            this.DragMove();
        }
	}
}